import request from '@/utils/request'

export function fetchListRecommend(query) {
  return request({
    url: '/recommend',
    method: 'GET',
    params: query
  })
}


export function getRecommend(id){
	return request({
		url: `/recommend/${id}`,
		method: 'GET'
	})
}

export function saveRecommend(data){
	return request({
		url: '/recommend',
		method: 'POST',
		data
	})
}

export function deleteRecommend(id){
	return request({
		url:`/recommend/${id}`,
		method: 'DELETE'
	})
}

export function updateRecommend(data){
	return request({
		url: `/recommend/${data.Id}`,
		method: 'PUT',
		data
	})
}
